<?php
/**
 * Created by yuxianjun001@icloud.com.
 * User: wuchen
 * Date: 2019/4/2
 * Time: 11:11
 */

namespace App\Http\Controllers\Api\Order;


use App\Http\Controllers\Common\MyController;
use App\Services\Order\BusinessOrderService;
use Illuminate\Http\Request;

/**
 * 商家订单-订货订单类
 * Class BusinessOrderController
 * @package App\Http\Controllers\Api\Order
 */
class BusinessOrderController  extends MyController
{
    private $service;

    public function __construct()
    {
        $this->service = new BusinessOrderService();
    }

    /**
     * 生成订货订单
     */
    public function create(Request $request){
       return $this->service->create($request);
    }

    /**
     * 商家后端-订货订单列表
     * @param Request $request
     * @return string
     */
    public function list(Request $request){
        return $this->service->list($request);
    }

    /**
     * 订货订单详情
     * @param Request $request
     * @return mixed
     */
    public function info(Request $request){
        return $this->service->info($request);
    }

    /**
     * 订货订单备注
     * @param Request $request
     * @return mixed
     */
    public function remark(Request $request){
        return $this->service->remark($request);
    }

    /**
     * 订货订单关闭
     * @param Request $request
     * @return mixed
     */
    public function close(Request $request){
        return $this->service->close($request);
    }

    /**
     * 订货订单确认发货
     * @param Request $request
     * @return mixed
     */
    public function confirm(Request $request){
        return $this->service->confirm($request);
    }

}